package cn.tjnext.apply.repositories;

import cn.tjnext.apply.entity.AdminEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by cp on 2017/7/31.
 */
@Repository
public interface AdminRepository extends AbstractRepository<AdminEntity>  {

    Page<AdminEntity> findByAccountLike(String account, Pageable pageable);

    AdminEntity findByAccount(String account);
}
